libs/gnttab: add FreeBSD handlers for the grant-table user-space device
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 1 Feb 2017 17:44:55 +0000 (17:44 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 2 Feb 2017 12:32:41 +0000 (12:32 +0000)
commitdf58461e6b6dfa85ea208fbe511a96cd5c8d61d3
tree2bea7be443a653939268b46813380442063a969d
parent1a6e3220cc19b8705c27ca90dbc615270237f372
libs/gnttab: add FreeBSD handlers for the grant-table user-space device

This patch adds the headers and helpers for the FreeBSD gntdev, used in order
to map grants from remote domains and to allocate grants on behalf of the
current domain.

Current code has been tested with the QEMU/Qdisk backend.

Signed-off-by: Akshay Jaggi <akshay1994.leo@gmail.com>
[ added dummy stub for osdep_gnttab_grant_copy ]
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Move PAGE_* back to {linux,freebsd}.c due to breakage in stubdom build.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/include/xen-sys/FreeBSD/gntdev.h [new file with mode: 0644]
tools/libs/gnttab/Makefile
tools/libs/gnttab/freebsd.c [new file with mode: 0644]
tools/libs/gnttab/linux.c
tools/libs/gnttab/private.h